/**
 * This library is a thing to realize D2L and DI and AOP on Flex2(ActionScript3).
 * Copyright (C) 2007 Takamasa Seki
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 * 
 * Contributor : Takamasa Seki(takanafu@gmail.com)
 *               http://www.takanafu.com/
 */

package com.takanafu.haruframework.aopalliance.instrument{
	import com.takanafu.haruframework.aopalliance.reflect.ClassLocator;
	import com.takanafu.haruframework.aopalliance.reflect.Code;
	import com.takanafu.haruframework.aopalliance.reflect.CodeLocator;
	import com.takanafu.haruframework.aopalliance.reflect.ClassLocator;
	
	import mx.collections.ArrayCollection;
	
	public interface Instrumentor{
		function addAfterCode(location:CodeLocator,afterCode:Code,before:Instrumentation,after:Instrumentation):Instrumentation;
		function addAroundCode(location:CodeLocator,aroundCode:Code,proceedMethodName:String,before:Instrumentation,after:Instrumentation):Instrumentation;
		function addBeforeCode(location:CodeLocator,beforeCode:Code,before:Instrumentation,after:Instrumentation):Instrumentation;
		function addClass(location:CodeLocator,className:String):Instrumentation;
		function addField(location:CodeLocator,name:String,typeName:String,initializator:Code):Instrumentation;
		function addInterface(location:CodeLocator,newInterfaceName:String):Instrumentation;
		function addMethod(location:CodeLocator,name:String,parameterTypeNames:ArrayCollection,parameterNames:ArrayCollection,body:Code):Instrumentation;
		function createClass(name:String):ClassLocator;
		function setSuperClass(location:ClassLocator,newSuperClassName:String):Instrumentation;
		function undo(instrumentation:Instrumentation):void;
	}
}